package com.atgouwu.mall.order.service;

import com.atgouwu.mall.order.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atgouwu.mall.common.utils.PageUtils;
import com.atgouwu.mall.order.entity.OrderEntity;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author heran
 * @email sunlightcs@gmail.com
 * @date 2024-02-22 15:15:23
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    PayVo getOrderPay(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo asyncVo);

    String asyncNotify(String notifyData);

}

